Group2D Class
Used to group Object2D objects.
More information available in parent classes: Object2D:Object
Notes
Use the Objects property of the Picture class to associate a Group2D object with a picture and the DrawObject method of the Graphics class to draw the object.
A Group2D is a container for Object2D shapes (including other Group2Ds). When a Group2D is rotated, translated, or scaled, all of its contents are updated accordingly. This means that all objects use the same coordinate system, but you can quickly transform an entire set of objects by simply transforming their group.
Example
This method adds a PixmapShape and a StringShape to the Group2D object and displays it in the window. The picture, "h1", has been added to the Project Editor.
Dim s as StringShape
Dim d as New Group2D
px=New PixmapShape(h1)
d.append px
s= New StringShape
s.y=70
s.Text="This is what I call a REAL car!"
s.TextFont="Helvetica"
s.Bold=true
d.append s
Graphics.drawobject d,100,100
See Also
ArcShape, CurveShape, FigureShape, FolderItem, Graphics, OvalShape, Picture, PixmapShape, RectShape, RoundRectShape, StringShape classes.